<template>
  <span>
    <el-select :value="value" placeholder="请选择" @change="change" :clearable="clearable">
      <slot name="option"></slot>
      <el-option v-for="item in options" :key="item.value" :label="item.name" :value="item.value">
      </el-option>
    </el-select>
  </span>
</template>
<script>
export default {
  props: {
    clearable: {
      type: Boolean,
      default: false
    },
    value: String
  },
  data () {
    return {
      options: [
        {
          name: '专家认证',
          value: '1'
        },
        {
          name: '机构认证',
          value: '2'
        },
        {
          name: '达人认证',
          value: '3'
        }
      ]
    }
  },
  methods: {
    change (n) {
      this.$emit('input', n)
    }
  }
}
</script>